package com.education.project.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.education.project.dao.LoginUserDao;

@Repository
public class LoginUserDaoImpl implements LoginUserDao {
	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	@Override
	public void updatePwdBatch(List list) {
		String sql = "update login_user set password=md5(loginname) where id=?";
		jdbcTemplate.batchUpdate(sql, list);
	}

}
